Skip to content

convert more warnings in OCaml syntax to ReScript syntax#5468

Merged
zth merged 4 commits intomasterfrom
convert-more-error-messages-from-ml-to-res
Jun 25, 2022
Merged

convert more warnings in OCaml syntax to ReScript syntax#5468
zth merged 4 commits intomasterfrom
convert-more-error-messages-from-ml-to-res

Conversation

@zth
Copy link
Member

@zth zth commented Jun 25, 2022

This changes more pattern matching related warnings/errors from OCam to ReScript syntax:

  • Non closed record pattern warning ("please add ", _" to your pattern)
  • Record syntax
  • Variants with payloads
  • Arrays

19 │ let arr = [1]

You forgot to handle a possible case here, for example:
({typ: WithPayload(false)}|{typ: Variant})
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks a little dense.
Aslo, parens probl non needed.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cristianoc check the latest commit, what do you think?

@cristianoc
Copy link
Collaborator

Looking great. Merge away when you're happy with it.

@zth zth merged commit 6d81258 into master Jun 25, 2022
@zth zth deleted the convert-more-error-messages-from-ml-to-res branch June 25, 2022 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants